import Vue from 'vue';
import Router from 'vue-router';
import mySchedule from './../pages/mySchedule';
import teacherTraining from './../pages/teacherTraining';
import archives from './../pages/archives';
import myPatriarch from './../pages/myPatriarch';
import mistakesCollection from './../pages/mistakesCollection';
import classHistory from './../pages/myTrainClass/classHistory';
import preparingInfo from './../pages/preparingInfo';
import organintro from './../pages/organintro';
import login from './../pages/login';
import menu from './../menu';
Vue.use(Router)


export default new Router({
        routes: [{
                path: '/login',
                component: login,
                hidden: true,
            },
            {
                path: '/',
                component: menu,
                name: '',
                leaf: true,
                icon: 'el-icon-information',
                children: [
                    { path: '/mySchedule', component: mySchedule, name: '我的课表' },
                ]
            },
            {
                path: '/',
                component: menu,
                name: '我的培训课程',
                leaf: true,
                icon: 'el-icon-information',
                children: [
                    { path: '/classHistory', component: classHistory, name: '课程历史记录' }
                ]
            },
            {
                path: '/',
                component: menu,
                name: '',
                leaf: true,
                icon: 'el-icon-document',
                children: [
                    { path: '/archives', component: archives, name: '我的档案' },
                ]
            },
            {
                path: '/',
                component: menu,
                name: '',
                leaf: true,
                icon: 'el-icon-picture',
                children: [
                    { path: '/teacherTraining', component: teacherTraining, name: '培训机构老师' },
                ]
            },
            {
                path: '/',
                component: menu,
                name: '',
                leaf: true,
                icon: 'el-icon-picture',
                children: [
                    { path: '/myPatriarch', component: myPatriarch, name: '我的家长' },
                ]
            },
            {
                path: '/',
                component: menu,
                name: '',
                leaf: true,
                icon: 'el-icon-picture',
                children: [
                    { path: '/organintro', component: organintro, name: '培训机构简介' },
                ]
            },
            {
                path: '/',
                component: menu,
                name: '',
                leaf: true,
                icon: 'el-icon-picture',
                children: [
                    { path: '/preparingInfo', component: preparingInfo, name: '培训备课信息' },
                ]
            },
            /* {
                path: '/',
                component: menu,
                name: '',
                leaf: true,
                icon: 'el-icon-menu',
                children: [
                    { path: '/mistakesCollection', component: mistakesCollection, name: '我的错题集'},
                ]
            } */
        ]
    }


)